package methodObj;

import java.util.Arrays;
import java.util.Objects;
import java.util.Date;


public class Farm {
   private String name;
    private String sex;
    private int age;

    private Date birthday;


    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    Farm(){};

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }


    @Override
    public String toString() {
        return "Farm{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                '}';
    }

    public void drink(){
        System.out.println("我爱喝水。。。");
    }
    public void cook(String...strings){
        System.out.println("我会做很多菜"+ Arrays.toString(strings));
    }
}
